import { createApp } from 'vue';
import App from './App.vue';
//
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
// 配置国际化
// @ts-ignore
import zhCn from 'element-plus/es/locale/lang/zh-cn';
// 引入全局 scss 文件
import './styles/index.scss';
//   svg
import 'virtual:svg-icons-register';
import globalComponents from '@/components';
import 'element-plus/theme-chalk/dark/css-vars.css';
import router from '@/router';
import '@/permission';
import { pinia } from '@/store';

const app = createApp(App);

app.use(ElementPlus, {
    locale: zhCn,
});
app.use(router);
app.use(globalComponents);
app.use(pinia);
app.mount('#app');
